const Service = require('../../../core/service/ApiService');

class CommonDao extends Service {

    //获取开发团队
    async getDevelop() {
        return this.model.DevelopInfo.findAll({
            attributes:['develop_id','name','position','grade','start_time','end_time'],
            raw:true
        })
    }

    //获取开发团队
    async getVersion() {
        return this.model.VersionInfo.findAll({
            attributes: ['version_id','version','change'],
            raw: true
        })
    }

    //
    async getInfo() {
        return this.model.App.findAll({
            attributes: ['open_id','appId','secret'],
            raw: true
        })
    }
}
module.exports = CommonDao;
